# encoding: UTF-8
 
class Role < ActiveRecord::Base
  
  attr_accessible :content, :status, :title

  scope :open_status, where(:status => 0)

  validates_presence_of :title, :message => '分类名称为必填项'
  validates_uniqueness_of :title, :message => '此分类标题已经存在'

end
